package cn.itsource.controller.app;

import cn.itsource.pojo.domain.DriverAuthMaterial;
import cn.itsource.pojo.dto.AuthApplyMaterialDto;
import cn.itsource.pojo.query.PageQueryWrapper;
import cn.itsource.result.JSONResult;
import cn.itsource.result.PageResult;
import cn.itsource.service.IDriverAuthMaterialService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;

@Tag(name = "司机实名资料",description = "司机实名资料")
@RestController
@RequestMapping("/app/driverAuthMaterial")
public class AppDriverAuthMaterialController {

    @Autowired
    public IDriverAuthMaterialService driverAuthMaterialService;

    @Operation( summary= "实名申请",description = "实名申请")
    @Parameter(name = "dto",description = "实名材料",required = true)
    @PostMapping("/apply")
    public JSONResult apply(@RequestBody @Valid AuthApplyMaterialDto dto){
        driverAuthMaterialService.apply(dto);
        return JSONResult.success();
    }











}
